// 评论api
import {
  get,
  post,
} from '../http/http';

export default {
  summitComment(params) { // 添加评论
    return post('/plain/comment/recording/insert', params);
  },
  submitPraise(params) { // 添加点赞
    return post('/plain/likes/recording/insert', params);
  },
  deleteComment(params) { // 删除评论
    return post('/plain/comment/recording/delete/byuser', params);
  },
  getCommentList(params) { // 查询评论
    // 录音id: recid
    // 当前浏览用户唯一id（微信账号/QQ号）：viewerid
    return get('/plain/comment/recording', params)
  }
}